DefaultCharacteristicWrapper

class DefaultCharacteristicWrapper(characteristic: <Error class: unknown class>) : CharacteristicWrapper

Default implementation of CharacteristicWrapper

Parameters

characteristic

the CBCharacteristic to wrap

Constructors

Link copied to clipboard
constructor(characteristic: <Error class: unknown class>)

Properties

Link copied to clipboard
open override val descriptors: List<DescriptorWrapper>

The list of DescriptorWrapper of associated with the characteristic

Link copied to clipboard
open override val properties: <Error class: unknown class>

The integer representing all CharacteristicProperties of the characteristic

Link copied to clipboard
open override val uuid: <Error class: unknown class>

The UUID of the characteristic

Link copied to clipboard
open override val value: <Error class: unknown class>?

The current Value of the characteristic

Functions

Link copied to clipboard

Checks whether CharacteristicWrapper.properties contains any properties in property

Link copied to clipboard
open override fun readValue(peripheral: <Error class: unknown class>)

Request a CBPeripheral to read the characteristic

Link copied to clipboard
open override fun setNotificationValue(enabled: Boolean, peripheral: <Error class: unknown class>)

Request a CBPeripheral to update the notifying status of the characteristic

Link copied to clipboard
open override fun writeValue(value: <Error class: unknown class>, peripheral: <Error class: unknown class>)

Request a CBPeripheral to write value to the characteristic